package com.ruoyi.config;

import com.ruoyi.common.core.redis.RedisCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class RedisInitializer implements CommandLineRunner {
    @Autowired
    private RedisCache redisCache;

    @Override
    public void run(String... args) {
        redisCache.setCacheObject("imgNum", 0);
    }
}
